<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common::head('机构对照')">

</head>
<body>
<div id="app">
    <el-container style="height: 100%; border: 1px solid #eee">
        <el-aside width="200px" style="background-color: rgb(238, 241, 246)" th:replace="/common::navMenuY">

        </el-aside>

        <el-container>
            <el-header style="text-align: right; font-size: 12px" th:replace="/common :: navMenuX">

            </el-header>

            <el-main>
                <el-table :data="tableData">
                    <el-table-column prop="id" label="企业微信机构id" width="140">
                    </el-table-column>
                    <el-table-column prop="parentId" label="企业微信机构上级id" width="120">
                    </el-table-column>
                    <el-table-column prop="name" label="机构名称">
                    </el-table-column>
                    <el-table-column prop="orgId" label="关联机构id">
                    </el-table-column>
                    <el-table-column prop="code" label="关联机构编码">
                    </el-table-column>
                </el-table>
            </el-main>
        </el-container>
    </el-container>
</div>
</body>
<style>
    .el-header {
        background-color: #B3C0D1;
        color: #333;
        line-height: 60px;
    }

    .el-aside {
        color: #333;
    }
</style>

<script>
    new Vue({
        el: '#app',
        data() {
            return {
                tableData : [{code:1}],
                isCollapse : false
            }
        },
        methods: {
            getMenuData () {
                axios.post('/qyWeixin/org/getOrgList', 'userId=' + sessionStorage.getItem('userId')).then(res => {
                    this.tableData = res.data.data;
                })
            },
            collapse () {
                this.isCollapse = !this.isCollapse
            }
        },
        created () {
            this.getMenuData()
        }
    })
</script>
</html>